import type { GetterTree } from 'vuex'
import type { IRootState } from '.'

export interface IRootGetters {
  readonly shareCode: string
  readonly shareToken: string
  readonly shareID: string
}

export default {
  shareCode: (state) => state.eolink.shareCode,
  shareID: (state) => state.eolink.shareID,
  shareToken: (state) => state.eolink.shareToken
} as Pick<GetterTree<IRootState, IRootState>, keyof IRootGetters>